package com.sbtr.business.system.entity;

import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import lombok.EqualsAndHashCode;
    import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModel;


/**
 * 项目基本信息（用于模型、特征工程、算法等模块总入口，其次用于数据汇总） 实体类
 *
 * @author maojianping
 * @since 2023-04-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_item_info")
@ApiModel(value="ItemInfo对象")
public class ItemInfo extends Model<ItemInfo> {

    @ApiModelProperty(value = "id")
    @TableId(value = "id")
    private Long id;

    @ApiModelProperty(value = "项目名称")
    private String itemName;

    @ApiModelProperty(value = "项目详情")
    private String detailed;

    @ApiModelProperty(value = "所属单位")
    private String unit;

    @ApiModelProperty(value = "模型数量")
    private Integer modelCount;

    @ApiModelProperty(value = "画布数量")
    private Integer canvasCount;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "创建人")
    private String creator;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")// 后台传数据到前台
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") //前台传数据到后台
    private Date createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
